<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>普通字符串</h2>
<table>
    <tr>
        <td th:text="'我叫：'+${name}"></td>
    </tr>
</table>

<h2>JavaBean对象</h2>
<table>
    <tr>
        <td>名字</td>
        <td th:text="${user.name}"></td>
    </tr>
    <tr>
        <td>年龄</td>
        <td th:text="${user['age']}"></td>
    </tr>
    <tr>
        <td>介绍</td>
        <td th:text="${user.getDetail()}"></td>
    </tr>
</table>

<h2>List取值</h2>
<table>
    <tr th:each="item:${userList}">
        <td th:text="${item}"></td>
    </tr>
</table>

<h2>userArrayList</h2>
<table>
    <tr th:each="item:${userArrayList}">
        <td th:text="${item}"></td>
    </tr>
</table>

<h2>Map取值</h2>
<table>
    <tr>
        <td>place:</td>
        <td th:text="${map.get('place')}"></td>
    </tr>
    <tr>
        <td>feeling:</td>
        <td th:text="${map.get('feeling')}"></td>
    </tr>
</table>

<h2>Map遍历</h2>
<table>
    <tr th:each="item:${map}">
        <td th:text="${item.key}">:</td>
        <td th:text="${item.value}"></td>
    </tr>
</table>
</body>
</html>